<?php 


echo "123456";

var_dump('cao');

$w=9;
$o=&$w;
$o=885;
echo $w;

$c='wqj';
$$c='wan';
var_dump($wqj);

// $id = $_GET["id"];
// echo $id;

echo $_POST["username"];
echo $_POST["password"];


define("name", "wqj");
var_dump(name);
// $res=defined('name');
// echo($res);

$wu=22.3;
$ree=settype($wu, 'string');
var_dump($ree);

// $i*$k
echo'<table border="1">';
for ($i=9; $i >=1 ; $i--) { 
	echo "<tr>";
	for ($k=1; $k <= $i; $k++) { 
		if ($i%2==0 && $k%2==1) {
		echo "<td style='background:blue'>";
		echo $i."*".$k."=".$i*$k;
		echo"</td>";
		}elseif ($i%2==0&&$k%2==0) {
		echo "<td style='background:#D4DBED'>";
		echo $i."*".$k."=".$i*$k;
		echo"</td>";
		}
		else{
		echo "<td style='background:red'>";
		echo $i."*".$k."=".$i*$k;
		echo"</td>";
		}
	}
	echo"</tr>";
};
echo'</table>';

echo "<table>";
for ($i=1; $i <= 6; $i++) { 
	echo "<tr>";
	for ($p=1; $p <= 11; $p++) { 
		if ($p>=6-$i||$p<=$i+6) {
			echo "<td>*</td>";
		}else{
			echo "3";
		}
		
	};
	echo "</tr>";
};
echo "</table>";
 ?>




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>
<!-- 	<form action="./test.php" method="post">
	<input type="text" name="username">
		<input type="password" name="password">
		<input type="submit" name="登录">
	</form> -->

	<table border="1">
		<?php for ($o=9; $o >= 1; $o--) { ?>
			<tr>
				<?php for ($j=1; $j<=$o; $j++) { ?>

					<?php if($o%2==1){ ?>
						<td style=background:red>
					<?php }elseif ($o%2==0&&$j%2==1) { ?>
						<td style=background:blue>
					<?php }else{ ?>
						<td  style=background:#D4DBED>
					<?php } ?>
					<?php echo $o."*".$j."=".$j*$o; ?>
						</td>
						
				<?php } ?>
			</tr>
		<?php } ?>
	</table>
</body>
</html>